package com.hyl.service;


import com.hyl.mapper.UserMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * UserService
 *
 * @author hyl
 * @date 2025-06-23
 */
public class DeptService {

    Logger logger = LoggerFactory.getLogger(DeptService.class);

    private UserMapper userMapper;

    public int insert(){
        logger.info("新增");
        //调用
        if (userMapper != null) {
            userMapper.insert();
        }
        return 1;
    }


    public int update(){
        logger.info("修改");
        if (userMapper != null) {
            userMapper.update();
        }
        return 1;
    }


    public int delete(){
        logger.info("删除");
        if (userMapper != null) {
            userMapper.delete();
        }
        return 1;
    }
}
